﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NextCMS.Models
{
    /// <summary>
    /// Summary description for MasterPageModel
    /// </summary>
    public class TemplateModel
    {
        public int Id { get; set; }
        public int SiteId { get; set; }
        public string Name { get; set; }
        public int WebResourceId { get; set; }
        public string TemplateImageName { get; set; }
        public string Content { get; set; }
        public List<PageSections> lstPageSections = new List<PageSections>();
    }
    public class PageSections
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public int SectionId { get; set; }

    }
    public interface ITemplate : IDisposable
    {
        TemplateModel GetById(int id);
        IEnumerable<TemplateModel> GetAllBySiteId(int SiteId);
        int Save(TemplateModel page);
        void Delete(int id);
        void Edit(TemplateModel page);
    }
}
